package net.jcip.vehicles;


public class PublishPoint {

	private double x,y;

	public PublishPoint(double x, double y) {
		super();
		this.x = x;
		this.y = y;
	}
	
	public PublishPoint( PublishPoint p){
		this(p.x,p.y);
	}

	public synchronized double getX() {
		return x;
	}

	public synchronized double getY() {
		return y;
	}
	
	public synchronized void set(double x,double y){
		this.x = x;
		this.y = y;
	}
	
}
